//
//  SGReceive.h
//  YaKe
//
//  Created by liu chao on 15/10/9.
//  Copyright (c) 2015年 ssyx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SGHeader.h"


@interface SGReceive : NSObject


/* 接口请求状态码(200:成功) */
@property (nonatomic, copy) NSString *code;

/**
 *  请求业务返回信息(执行成功)
 */
@property (nonatomic, copy) NSString *msg;

@property (nonatomic,strong) id data;//数据,可能是数组,也可能是字典

+ (instancetype)receiveWithResponseObject:(id)responseObject dataClass:(Class)clazz;


#pragma mark -- Add
/* 接口请求状态码(200:成功) */
@property (nonatomic, copy) NSString *status;

+ (instancetype)receiveWithResponseObject:(id)responseObject dataWord:(NSString *)dataWord dataClass:(Class)clazz;
@end
